package com.yi.servicemap.controller;

import com.yi.internalcommon.dto.ResponseResult;
import com.yi.servicemap.service.TrackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/track")
public class TrackController {
    @Autowired
    private TrackService trackService;

    /**
     * 创建轨迹
     *
     * @param tid
     * @return
     */
    @PostMapping("/add")
    public ResponseResult add(String tid) {
        return trackService.add(tid);
    }
}
